<HTML>
<HEAD>
<meta charset="UTF-8">
<title>DefaultRealtimeController.addRealtimeDataMessageObserver - amazon-chime-sdk</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">amazon-chime-sdk</a>&nbsp;/&nbsp;<a href="../index.html">com.amazonaws.services.chime.sdk.meetings.realtime</a>&nbsp;/&nbsp;<a href="index.html">DefaultRealtimeController</a>&nbsp;/&nbsp;<a href="./add-realtime-data-message-observer.html">addRealtimeDataMessageObserver</a><br/>
<br/>
<h1>addRealtimeDataMessageObserver</h1>
<a name="com.amazonaws.services.chime.sdk.meetings.realtime.DefaultRealtimeController$addRealtimeDataMessageObserver(kotlin.String, com.amazonaws.services.chime.sdk.meetings.realtime.datamessage.DataMessageObserver)"></a>
<code><span class="keyword">fun </span><span class="identifier">addRealtimeDataMessageObserver</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.realtime.DefaultRealtimeController$addRealtimeDataMessageObserver(kotlin.String, com.amazonaws.services.chime.sdk.meetings.realtime.datamessage.DataMessageObserver)/topic">topic</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.realtime.DefaultRealtimeController$addRealtimeDataMessageObserver(kotlin.String, com.amazonaws.services.chime.sdk.meetings.realtime.datamessage.DataMessageObserver)/observer">observer</span><span class="symbol">:</span>&nbsp;<a href="../../com.amazonaws.services.chime.sdk.meetings.realtime.datamessage/-data-message-observer/index.html"><span class="identifier">DataMessageObserver</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
<p>Subscribes to receive message on a topic, there could be multiple
observers per topic</p>
<h3>Parameters</h3>
<p><a name="topic"></a>
<code>topic</code> - : String - topic of messages for subscription</p>
<p><a name="observer"></a>
<code>observer</code> - : <a href="../../com.amazonaws.services.chime.sdk.meetings.realtime.datamessage/-data-message-observer/index.html">DataMessageObserver</a> - observer that handles the data message events</p>
</BODY>
</HTML>
